Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove passive task resend logic #6906

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

xwduan
Copy link
Contributor

@xwduan xwduan commented Nov 27, 2024

What changed?

Remove passive task resend logic

Why?

Resend is best effort

How did you test it?

unit test

Potential risks

passive task may disappear

Documentation

no document

Is hotfix candidate?

no

@xwduan xwduan marked this pull request as ready for review December 4, 2024 00:51
@xwduan xwduan requested a review from a team as a code owner December 4, 2024 00:51
registry namespace.Registry,
) bool {
workflowKey := taskWorkflowKey(taskInfo)
remoteClusterName, err := getRemoteClusterName(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: sourceCluster to match the method name?

if err != nil {
return true
}
_, err = remoteAdminClient.DescribeMutableState(ctx, &adminservice.DescribeMutableStateRequest{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use DescribeWorkflowExecution?

@@ -166,7 +160,7 @@ func (t *timerQueueStandbyTaskExecutor) executeUserTimerTimeoutTask(
timerTask.GetVisibilityTime(),
timerSequenceID.Timestamp,
) {
return getHistoryResendInfo(mutableState)
return &struct{}{}, nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: seem like we don't need extra data in the struct. could we just use a boolean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants